/**
 * Created by MorenYang on 2017/12/8.
 */

export const login = ({user, token, userType}) => ({
  type: 'USER_LOGIN',
  user, token, userType
});

export const setUser = ({user, userType}) => ({
  type: 'SET_USER',
  userType, user
});

export const logout = () => ({
  type: 'USER_LOGOUT'
});
